package cn.cs.mapper;

import cn.cs.pojo.AgentType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AgentTypeMapper {

    public AgentType getAgentTypeById(@Param(value = "id") String id) throws Exception;

    public List<AgentType> getAgentTypeListByMap(Map<String, Object> param) throws Exception;

    public Integer getAgentTypeCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertAgentType(AgentType agentType) throws Exception;

    public Integer updateAgentType(AgentType agentType) throws Exception;

    public Integer deleteAgentTypeById(@Param(value = "id") String id) throws Exception;

}
